//
//  TopicModel.m
//  Leisure
//
//  Created by Alex on 16/6/30.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "TopicModel.h"

@implementation TopicModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"userinfo"]) {
        
        self.icon = value[@"icon"];
        self.uid = value[@"uid"];
        self.uname = value[@"uname"];
    }
    if ([key isEqualToString:@"counterList"]) {
        
        self.comment = value[@"comment"];
        self.like = value[@"like"];
        self.view = value[@"view"];
    }
}

@end
